#ifndef DISC_C808_H
#define DISC_C808_H

#include "CaenDiscriminator.h"
#include "Camac_CC32.h"

class Disc_C808 : public CaenDiscriminator {

  protected:
    Camac_CC32 &camac;
    unsigned int station;
    
  public:
    
    Disc_C808(Camac_CC32 &i_camac, unsigned int i_station) : camac(i_camac), station(i_station) {};
    virtual void SetThreshold(int channel, uint8_t value);
    virtual void SetInhibitPattern(uint16_t pattern);
    virtual void SetOutputWidth(int chrange, uint8_t value);
    virtual void SetDeadTime(int chrange, uint8_t value);
    virtual void SetMajorityThreshold(uint8_t nchannels);
    virtual void GenTestPulse();
};


#endif
